import http from "@/utils/http";

export const getScenicSpotsAPI=(myData:{
    id:string;
    cityName:string;
    scenicSpots:[
        {
            id:string;
            name:string;
            pictureUrl:string;
            description:string;
            price:number;
            belongCity:string;
            cityId:string 
        }
    ]
})=>{
    return http({
        url:'/api/v2/city/getScenicSpots',
        method:'GET',
        data:{
            ...myData
        }
    })
}

export const getCityAPI=()=>{
    return http({
        url:'/api/v2/city/get',
        method:'GET'
    })
}